/**
 * MyThread.java - 2013-8-15
 *
 * Licensed Property to China UnionPay Co., Ltd.
 * 
 * (C) Copyright of China UnionPay Co., Ltd. 2010
 *     All Rights Reserved.
 *
 * Project Info: China UnionPay Internet Acquiring Project
 * 
 * Modification History:
 * =============================================================================
 *   Author         Date          Description
 *   ------------ ---------- ---------------------------------------------------
 *        
 * =============================================================================
 */
package com.lijin.workshop.test.thread;

/**
 * Description: 
 *
 * (C) Copyright of China UnionPay Co., Ltd. 2010.
 *
 */
public class MyThread extends Thread {

	private int threadNo;
	private BoundedBuffer buf;
	
	public MyThread(int threadNo, BoundedBuffer buf) {
		this.threadNo = threadNo;
		this.buf = buf;
	}
	
	public void run() {
		buf.put("ThreadNo" + threadNo);
		System.out.println("ThreadNo" + threadNo + "get-->" + buf.get());
	}
}
